{if count($messages.error) gt 0}
<ul>
  {foreach $messages.error as $message}
  <li>{$message}</li>
  {/foreach}
</ul>
{/if}
{if count($messages.success) gt 0}
<ul>
  {foreach $messages.success as $message}
  <li><div id="message" class="updated"><p>{$message}</p></div></li>
  {/foreach}
</ul>
{/if}

